package net.webparation.portlet;

import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

/**
 * Interface for implementing a view command to be executed by a portlet action.
 *
 * @author <a href="mailto:allan.lykke.christensen@gmail.com">Allan Lykke Christensen</a>
 */
public interface ViewCommand {
    
    /**
     * Executes the command.
     *
     * @param request
     *            {@link RenderRequest} from the user request.
     * @param response
     *            {@link RenderResponse} in the user request.
     * @return Despatch file
     */
    public String execute (RenderRequest request, RenderResponse response);
    
}
